import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import scan.pojo.Person;

public class XmlBeanMain {
    public static void main(String args[]){
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("XMLBean.xml");
        Person person = (Person) applicationContext.getBean("person");
        person.sayHello();
    }
}
